#ifndef FENGGO_AI_GO
#define FENGGO_AI_GO

#define BOARD_LINES               19          //棋盘行列线条数
#define BOARD_SPACE               (3 + 1)     //单个棋子所占空间
#define INI_FILE                  "/FengGo/FengGo.ini"     //单个棋子所占空间
#define LOG_FILE                  "/FengGo/log"            //单个棋子所占空间
#define HISTORY_FILE              "/FengGo/history"        //行棋历史

//坐标
char sCols[BOARD_SPACE];   // 当前终端的列数
char sLines[BOARD_SPACE];    // 当前终端的行数

//记录行棋步骤用
int iReturn = -1;  //第一次显示棋盘，棋手落子时iReturn=1
int iStep   =  0;  //第一次显示棋盘，棋手落子时iReturn=1

//纵坐标
#define      LINE_A   0
#define      LINE_B   1
#define      LINE_C   2
#define      LINE_D   3
#define      LINE_E   4
#define      LINE_F   5
#define      LINE_G   6
#define      LINE_H   7
#define      LINE_I   8
#define      LINE_J   9
#define      LINE_K   10
#define      LINE_L   11
#define      LINE_M   12
#define      LINE_N   13
#define      LINE_O   14
#define      LINE_P   15
#define      LINE_Q   16
#define      LINE_R   17
#define      LINE_S   18

//#include <unistd>
#include <cstring>
#include <cstdlib>
#include <fstream>

#include "log.hpp"
#include "util.hpp"
#include "AI.hpp"
#include "FengGoSo.hpp"

using namespace magicube;

namespace magicube{
//初始化棋盘
long initBoard[] = {
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000
};

//本次显示的棋盘
long nowBoard[] = {
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000, 
	0x0000000000000000
};

}
#endif
